import { listTagTree,getTag } from '@/api/tag/index'

const tag = {
    actions: {
        //标签树
        ListTagTree({ commit },id) {
            return new Promise((resolve, reject) => {
                listTagTree(id).then(res => {
                    resolve(res)
                }).catch(error => {
                    reject(error)
                })
            })
        },
        //标签详情
        GetTag({ commit },id) {
            return new Promise((resolve, reject) => {
                getTag(id).then(res => {
                    resolve(res)
                }).catch(error => {
                    reject(error)
                })
            })
        }
    }
}
export default tag;